package health_system.health_system.websocket.Model;

/**
     * 社交互动类型枚举
     */
    public enum SocialInteractionType {
        LIKE("like"),           // 点赞
        COMMENT("comment"),     // 评论
        SHARE("share");         // 分享

        private final String value;

        SocialInteractionType(String value) {
            this.value = value;
        }

        public String getValue() {
            return value;
        }

        public static SocialInteractionType fromString(String text) {
            for (SocialInteractionType type : SocialInteractionType.values()) {
                if (type.value.equalsIgnoreCase(text)) {
                    return type;
                }
            }
            return null;
        }
    }